﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<MvcVehicleInsurance.Models.ClaimDetail>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="ico_mug">Edit Claim</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.claimNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.claimNumber) %>
                <%: Html.ValidationMessageFor(model => model.claimNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.billNo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.billNo) %>
                <%: Html.ValidationMessageFor(model => model.billNo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.policyStarDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.policyStarDate, String.Format("{0:g}", Model.policyStarDate)) %>
                <%: Html.ValidationMessageFor(model => model.policyStarDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.policyEndDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.policyEndDate, String.Format("{0:g}", Model.policyEndDate)) %>
                <%: Html.ValidationMessageFor(model => model.policyEndDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.placeOfAccident) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.placeOfAccident) %>
                <%: Html.ValidationMessageFor(model => model.placeOfAccident) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.dateOfAccident) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.dateOfAccident, String.Format("{0:g}", Model.dateOfAccident)) %>
                <%: Html.ValidationMessageFor(model => model.dateOfAccident) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.insuredAmount) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.insuredAmount, String.Format("{0:F}", Model.insuredAmount)) %>
                <%: Html.ValidationMessageFor(model => model.insuredAmount) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.claimableAmount) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.claimableAmount) %>
                <%: Html.ValidationMessageFor(model => model.claimableAmount) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

